package com.symone.webcms.service;

import com.baomidou.mybatisplus.service.IService;
import com.symone.webcms.model.Permission;
import com.symone.webcms.model.Role;
import com.symone.webcms.model.vo.PermissionVO;
import com.symone.webcms.model.vo.RoleFormVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Set;

/**
 * <p>
 * 系统用户组 服务类
 * </p>
 *
 * @author ArcherChu
 * @since 2018-10-30
 */
public interface RoleService extends IService<Role> {

    List<PermissionVO> fetchAllPermissions();

    Set<PermissionVO> fetchPermissionsById(Long id);

    boolean saveFormData(RoleFormVO form);

    void clearPermission(Long id);
}
